﻿function emailmass_change_type( type )
{
	if ( ! type || type == 0 || type == 1 )
	{
		document.getElementById('option_2').style.display = 'none';
		document.getElementById('email_customer_list').value = '';	
	}
	else if ( type == 2 )
	{
		document.getElementById('option_2').style.display = 'block';
	}
	else
	{
		return false;	
	}
}